package security;


import org.springframework.security.GrantedAuthority;
import org.apache.commons.lang.builder.CompareToBuilder;

public class SieciloAuthority implements GrantedAuthority {

	/**
	 * Serial UID.
	 */
	private static final long serialVersionUID = 4412955730421501358L;
	private String authority;

	/* (non-Javadoc)
	 * @see java.lang.Comparable#compareTo(T)
	 */
	public int compareTo(Object o) {
		return CompareToBuilder.reflectionCompare(this, o);
	}

	/**
	 * JavaBean Getter, obtener el valor actual de authority.
	 * @return El valor actual de authority.
	 */
	public String getAuthority() {
		return authority;
	}

	/**
	 * JavaBean Setter, asignarle valor a authority.
	 * @param authority El valor de authority a asignar.
	 */
	public void setAuthority(String authority) {
		this.authority = authority;
	}


}
